home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows 3-Pak 2 - Disc 2
/
Infomagic - Windows 3-Pak Volume 2 (Disc 2 of 3).iso
/
Chat---IRC
/
TURBOIRC.ZIP
/
data1.cab
/
TurboIRC_Scripts
/
EGUESSGAME.txt
< prev
next >
Wrap
Text File
|
1999-05-05
|
999b
|
46 lines
// Guess Game TurboIRC Script
// By Chourdakis Michael ⌐ 1998
staticint Num = Random(1000)
staticint Tries = 0
if (strnicmp("$3*",":!number ",8)!= 0)
return
endif
// in a game !
int L = atoi("$4")
if (L == Num)
/display $channel ConGrATuLaTiOnS you HaVe FOUND it !! It WaS %Num% !
/display $channel *******GAME OVER*******
/destroystaticvariable Num
/destroystaticvariable Tries
/_event GUESSGAME 0 0 0 *
return
endif
if (L > Num)
/display $channel Uhhhow ! You ArE TOO HiGH !
Tries += 1
goto FoundT
endif
if (L < Num)
/display $channel Uhhhow ! You ArE TOO LoW !
Tries += 1
goto FoundT
endif
:FoundT
if (Tries == 10)
/display $channel UHHHOH you didn't find the SecReT NuMbER was %Num% !
/display $channel *******GAME OVER*******
/destroystaticvariable Num
/destroystaticvariable Tries
/_event GUESSGAME 0 0 0 *
else
int V = 10 - Tries
/display $channel WaTcH It You have OnLy %V% tries left !
endif